﻿using System.DirectoryServices.ActiveDirectory;
using DemoPrism.Core;
using PdfReadMod.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Navigation.Regions;

namespace PdfReadMod
{
    public class PdfReadModModule: IModule
    {
        private readonly IRegionManager _regionManager;

        public PdfReadModModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }

        public void OnInitialized(IContainerProvider containerProvider)
        {
            _regionManager.RequestNavigate(RegionNames.ContentRegion, "PdfReadMain");
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<PdfReadMain>();
        }

    }
}